package org.zhigong.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by fanyaxin on 2018/3/14 0014.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Yuangong extends BaseEntity{

    private Long ygbh; // 员工编号

    private String xm; // 姓名

    private short xb; // 性别

    private Date cjsj; // 创建时间

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date rzrq; // 入职日期

    private int bmbh; // 部门编号

    private String bmmc; // 部门名称

    private int zwbh; // 职位编号

    private String zwmc; // 职位名称

    private String sfzh; // 身份证号

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date csrq; // 出生日期

    private String xl; // 学历

    private Long sj; // 手机

    private String dh; // 电话

    private String bz; // 备注

    @Override
    public String toString() {
        return "Yuangong{" +
                "ygbh=" + ygbh +
                ", xm='" + xm + '\'' +
                ", xb=" + xb +
                ", cjsj=" + cjsj +
                ", rzrq=" + rzrq +
                ", bmbh=" + bmbh +
                ", bmmc='" + bmmc + '\'' +
                ", zwbh=" + zwbh +
                ", zwmc='" + zwmc + '\'' +
                ", sfzh='" + sfzh + '\'' +
                ", csrq=" + csrq +
                ", xl='" + xl + '\'' +
                ", sj=" + sj +
                ", dh='" + dh + '\'' +
                ", bz='" + bz + '\'' +
                '}';
    }

    public Long getYgbh() {
        return ygbh;
    }

    public void setYgbh(Long ygbh) {
        this.ygbh = ygbh;
    }

    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    public short getXb() {
        return xb;
    }

    public void setXb(short xb) {
        this.xb = xb;
    }

    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    public Date getRzrq() {
        return rzrq;
    }

    public void setRzrq(Date rzrq) {
        this.rzrq = rzrq;
    }

    public int getBmbh() {
        return bmbh;
    }

    public void setBmbh(int bmbh) {
        this.bmbh = bmbh;
    }

    public int getZwbh() {
        return zwbh;
    }

    public void setZwbh(int zwbh) {
        this.zwbh = zwbh;
    }

    public String getSfzh() {
        return sfzh;
    }

    public void setSfzh(String sfzh) {
        this.sfzh = sfzh;
    }

    public Date getCsrq() {
        return csrq;
    }

    public void setCsrq(Date csrq) {
        this.csrq = csrq;
    }

    public String getXl() {
        return xl;
    }

    public void setXl(String xl) {
        this.xl = xl;
    }

    public Long getSj() {
        return sj;
    }

    public void setSj(Long sj) {
        this.sj = sj;
    }

    public String getDh() {
        return dh;
    }

    public void setDh(String dh) {
        this.dh = dh;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getBmmc() {
        return bmmc;
    }

    public void setBmmc(String bmmc) {
        this.bmmc = bmmc;
    }

    public String getZwmc() {
        return zwmc;
    }

    public void setZwmc(String zwmc) {
        this.zwmc = zwmc;
    }
}
